package com.example.demo.mapper;

import com.example.demo.domain.Class;
import com.example.demo.domain.Grade;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ClassMapper {


    List<Class> findAll(Integer pageNum, Integer pageSize);

    Integer findTotalRecord();

   boolean delete(Integer cid,Integer id);

    boolean add(Class classes);

    Class findClassByCid(Integer cid,Integer id);

    void update(Class classes);

}
